package com.yuelao.yuelao_backend.dto.request;

import lombok.Data;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.math.BigDecimal;

@Data
public class UnstakeRequest {
    @NotNull(message = "质押记录ID不能为空")
    private Long stakingId;

    @NotNull(message = "提取金额不能为空")
    @Min(value = 0, message = "提取金额必须大于0")
    private BigDecimal amount;
}